<?php
if($enviar){
if(!is_numeric($rut) || !is_numeric($digito) || $digito !="k")
{
echo "Debe ingresar solo números";
if($rut=="" || $digito=="" || $espectaculo=="Seleccione" || $local=="Seleccione" || $cantEntrada=="Seleccione" || $entrada=="Seleccione")
{
echo "Faltan datos";
}
}
else
{
header("");
}
}
?>
<html>
<head><title>Nuevo</title>
<link rel="stylesheet" type="text/css" href="../css/form.css">
</head>
<body>
<form style="width:380px;"class='contacto' method="post" action="" name="f_contacto">
        <h1><center>Reserva de entradas</center></h1><br>
        <label>Rut:</label>
		<table>
		<td>
		<input type="text" name="rut" style="width:100px;">
		</td>
		<td>-</td>
		<td>
		<input type="text" name="digito"style="width:20px;">
		</td>
		</table>
		<label>Espectaculo:</label><br>
		<select size="1" name="espectaculo">
		<option>Seleccione</option>
		<option>Espectaculo 1</option>
        <option>Espectaculo 2</option>
		</select><br><br>
		<label>Local:</label><br>
		<select size="1" name="local">
		<option>Seleccione</option>
		<option>Local 1</option>
        <option>Local 2</option>
		</select><br><br>
		<label>Cantidad de entradas:</label><br>
		<select size="1" name="cantEntrada">
		<option>Seleccione</option>
		<option>1</option>
        <option>2</option>
		<option>3</option>
        <option>4</option>
		<option>5</option>
        <option>6</option>
		<option>7</option>
        <option>8</option>
		<option>9</option>
        <option>10</option>
		<option>11</option>
        <option>12</option>
		<option>13</option>
        <option>14</option>
		<option>15</option>
		</select><br><br>
		<label>Entrada:</label><br>
		<select size="1" name="entrada">
		<option>Seleccione</option>
		<option>Galeria</option>
        <option>Cancha</option>
		</select><br><br>
		<br><br>
		<input type='submit' value='Enviar' name="enviar">
		<input type='reset' value='Borrar'>	
	</form>
</body>
</html>	